package cn.buulog.camera;

import android.app.Activity;
import android.widget.Toast;

public class Utils {
    public static void showToast(final String text, Activity activity) {
//        final Activity activity = getActivity();
        if (activity != null) {
            activity.runOnUiThread(new Runnable() {
                @Override
                public void run() {
                    Toast.makeText(activity, text, Toast.LENGTH_SHORT).show();
                }
            });
        }
    }
}
